package com.pro.service.imple;

import com.pro.mapper.UserFeedbackMapper;
import com.pro.pojo.JsUserFeedback;
import com.pro.service.UserFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * auther 杨沛琪
 * createDate 2022/1/7
 */
@Service
public class UserFeedbackServiceImple implements UserFeedbackService {
    @Autowired
    private UserFeedbackMapper userFeedbackMapper;

    @Override
    public List<JsUserFeedback> getTable() {
        return userFeedbackMapper.getTable();
    }

    @Override
    public List<JsUserFeedback> queryFeedback(Integer userId, Integer feedbackType, Integer feedbackClassification, String createDate) {
        return userFeedbackMapper.queryFeedback(userId, feedbackType, feedbackClassification, createDate);
    }

    @Override
    public List<JsUserFeedback> queryToBeReviewed(Integer feedbackStatus) {
        return userFeedbackMapper.queryToBeReviewed(feedbackStatus);
    }

    @Override
    public Integer getToBeReviewedNum() {
        return userFeedbackMapper.getToBeReviewedNum();
    }

    @Override
    public List<JsUserFeedback> queryAccepted(Integer feedbackStatus) {
        return userFeedbackMapper.queryAccepted(feedbackStatus);
    }

    @Override
    public Integer getAcceptedNum() {
        return userFeedbackMapper.getAcceptedNum();
    }

    @Override
    public boolean updateAccepted(Integer feedbackId) {
        return userFeedbackMapper.updateAccepted(feedbackId);
    }

    @Override
    public boolean del(Integer feedbackId) {
        return userFeedbackMapper.del(feedbackId);
    }
}
